package com.zhny.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class DTU_data {
	private String dtu;
	private String datetime;
	@JsonProperty("1004")
	private Float soilhumi1;
	private Float soilhumi2;
	private Float soilhumi3;
	private Float soiltemp;
	@JsonProperty("1001")
	private Float airtemp;
	@JsonProperty("1002")
	private Float airhumi;
	@JsonProperty("1030")
	private Float sundata;
	@JsonProperty("1051")
	private Float coo;
	@JsonProperty("1012")
	private Float yanfen;

	public DTU_data() {
		super();
	}
	
	public DTU_data(String dTU, String datetime, float soilhumi1, float soilhumi2, float soilhumi3, float soiltemp,
			float airtemp, float airhumi, float sundata, float coo, float yanfen) {
		super();
		dtu = dTU;
		this.datetime = datetime;
		this.soilhumi1 = soilhumi1;
		this.soilhumi2 = soilhumi2;
		this.soilhumi3 = soilhumi3;
		this.soiltemp = soiltemp;
		this.airtemp = airtemp;
		this.airhumi = airhumi;
		this.sundata = sundata;
		this.coo = coo;
		this.yanfen = yanfen;
	}

	public String getDtu() {
		return dtu;
	}

	public void setDtu(String dtu) {
		this.dtu = dtu;
	}

	public String getDatetime() {
		return datetime;
	}

	public void setDatetime(String datetime) {
		this.datetime = datetime;
	}

	public Float getSoilhumi1() {
		return soilhumi1;
	}

	public void setSoilhumi1(Float soilhumi1) {
		this.soilhumi1 = soilhumi1;
	}

	public Float getSoilhumi2() {
		return soilhumi2;
	}

	public void setSoilhumi2(Float soilhumi2) {
		this.soilhumi2 = soilhumi2;
	}

	public Float getSoilhumi3() {
		return soilhumi3;
	}

	public void setSoilhumi3(Float soilhumi3) {
		this.soilhumi3 = soilhumi3;
	}

	public Float getSoiltemp() {
		return soiltemp;
	}

	public void setSoiltemp(Float soiltemp) {
		this.soiltemp = soiltemp;
	}

	public Float getAirtemp() {
		return airtemp;
	}

	public void setAirtemp(Float airtemp) {
		this.airtemp = airtemp;
	}

	public Float getAirhumi() {
		return airhumi;
	}

	public void setAirhumi(Float airhumi) {
		this.airhumi = airhumi;
	}

	public Float getSundata() {
		return sundata;
	}

	public void setSundata(Float sundata) {
		this.sundata = sundata;
	}

	public Float getCoo() {
		return coo;
	}

	public void setCoo(Float coo) {
		this.coo = coo;
	}

	public Float getYanfen() {
		return yanfen;
	}

	public void setYanfen(Float yanfen) {
		this.yanfen = yanfen;
	}

	@Override
	public String toString() {
		return "DTU_data{" +
				"dtu='" + dtu + '\'' +
				", datetime='" + datetime + '\'' +
				", soilhumi1=" + soilhumi1 +
				", airtemp=" + airtemp +
				", airhumi=" + airhumi +
				", sundata=" + sundata +
				", coo=" + coo +
				", yanfen=" + yanfen +
				'}';
	}
}
